package com.ddpt.platform.mapper;

import com.ddpt.platform.entity.Student;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface StudentMapper {
    @Select("select id,name,password,sex,age from students limit 1")
    Student getOne();

    @Insert("insert into students( id,name,password,sex,age ) " +
            "values(#{id},#{name},#{password},#{sex},#{age})")
    int insert(Student member);
}
